/*    */ package com.behavior.iterator;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ 
/*    */ public class ConcreteAggregate
/*    */   implements Aggregate
/*    */ {
/*  8 */   private List<Object> list = new ArrayList();
/*    */ 
/*    */   public Iterator createIterator()
/*    */   {
/* 12 */     return new ConcreteIterator(this);
/*    */   }
/*    */ 
/*    */   public Object get(int index)
/*    */   {
/* 17 */     return this.list.get(index);
/*    */   }
/*    */ 
/*    */   public int length()
/*    */   {
/* 22 */     return this.list.size();
/*    */   }
/*    */ 
/*    */   public void add(Object o)
/*    */   {
/* 27 */     this.list.add(o);
/*    */   }
/*    */ }

/* Location:           C:\Users\lenovo\Desktop\DesignMode.jar
 * Qualified Name:     com.behavior.iterator.ConcreteAggregate
 * JD-Core Version:    0.6.2
 */